import axios from './interceptor'

type where = {
  articleTitle?: string
  address?: string
  content?: string
  report?: string
}
// 获取
const getComments = (page: string | number, where: where) => {
  return axios.post(`/comment/getAll`, {
    page,
    limit: '5',
    where,
  })
}
// 删除评论
const deleteComment = (ids: string[]) => {
  return axios.post('/comment/delAll', {
    ids,
  })
}
export { getComments, deleteComment }
